package com.msb.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.msb.common.dto.SeckillOrderDto;
import com.msb.common.exception.NoStockException;
import com.msb.common.utils.PageUtils;
import com.msb.mall.order.entity.OrderEntity;
import com.msb.mall.order.vo.OrderConfirmVo;
import com.msb.mall.order.vo.OrderResponseVo;
import com.msb.mall.order.vo.OrderSubmitVo;

import java.util.Map;

/**
 * 订单
 *
 * @author yuan38_sir
 * @email yuan38_sir@163.com
 * @date 2022-09-05 00:19:58
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取订单确认页中需要获取的相关信息
     * @return
     */
    OrderConfirmVo confirmOrder();

    OrderResponseVo submitOrder(OrderSubmitVo vo) throws NoStockException;

    void quickCreateOrder(SeckillOrderDto orderDto);
}

